<div
    bsModal
    #createOrEditModal="bs-modal"
    class="modal fade"
    tabindex="-1"
    role="dialog"
    aria-hidden="true"
    [config]="{ backdrop: 'static' }"
>
    <div class="modal-dialog modal-xxl">
        <div class="modal-content">
            <form *ngIf="active" #editForm="ngForm" novalidate autocomplete="off">
                <div class="modal-header">
                    <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="modal-body">
                        <dto-extend-edit
                            [attrs]="extensions"
                            [optionAll]="optionAll"
                            col="5"
                            [(dto)]="editDto"
                        ></dto-extend-edit>
                        <dto-extend-edit
                            [attrs]="extendextensions"
                            [optionAll]="optionAll"
                            col="5"
                            [(dto)]="editDto"
                        ></dto-extend-edit>
                    </div>

                    <div class="modal-footer">
                        <button [disabled]="saving" type="button" class="btn btn-default" (click)="close()">
                            {{ l('Cancel') }}
                        </button>
                        <button
                            type="button"
                            (click)="save()"
                            class="btn btn-primary blue"
                            [disabled]="!editForm.form.valid"
                            [buttonBusy]="saving"
                            [busyText]="l('SavingWithThreeDot')"
                        >
                            <i class="fa fa-save"></i>
                            <span>{{ l('Save') }}</span>
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
